package org.darkforest.dao.redis.impl;

import org.darkforest.dao.redis.GoodsRedisDao;
import org.darkforest.dao.redis.templete.AbstractListRedisOper;
import org.darkforest.model.Goods;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by valentina on 15/5/13.
 */
@Component
public class GoodsRedisDaoImpl extends AbstractListRedisOper<Goods> implements GoodsRedisDao{
    @Override
    public void addGoodsList(String key, List<Goods> goodsList) {
        this.addList(key, goodsList);
    }

    @Override
    public List<Goods> getGoodsListByKey(String key) {
        return this.getList(key);
    }

    @Override
    public void deleteList(String key) {
        this.deleteListByKey(key);
    }

}
